package main.java.game.item.potion;

import main.java.game.combatant.Hero;

public class SmallPotion extends Potion {
	private Integer restoredLifePoints;
	public SmallPotion(String name, Double buyingPrice){
		super(name, buyingPrice);
		this.restoredLifePoints=1;		
	}
	@Override
	public void use(Hero hero) {
		hero.setLifepoints(hero.getLifepoints()+restoredLifePoints);
	}
	
	public String toString(){
		return "Small Potion";
	}

}
